package com.augmentum.oes.dao;

import java.util.List;

import com.augmentum.oes.model.Pagination;
import com.augmentum.oes.model.Question;

public interface QuestionDao {
    void createQuestion(Question question);

    List<Question> queryAllQuestion();

    List<Question> queryQuestionPage(Pagination<Question> pagination);

    Question queryById(int id);

    void deleteQ(int id);

    void updateQ(Question question);

    int getCount(String fuzzy);
    
    List<Question> randQ(int count);
}
